package bot {
import bot.state.BotStateCircle;
import bot.state.BotStateFight;
import bot.state.BotStateHijack;
import bot.state.BotStateIdle;
import bot.state.IBotState;

/**
 * Список состояний
 */
public class BotStateList {
    public static const IDLE:int = 0;
    public static const CIRCLE:int = 1;
    public static const HIJACK:int = 2;
    public static const FIGHT:int = 3;

    private var states:Array;

    public function BotStateList(botModel:BotView) {
        states = [
            new BotStateIdle(botModel),
            new BotStateCircle(botModel),
            new BotStateHijack(botModel),
            new BotStateFight(botModel),
        ];
    }

    public function getById(stateId:int):IBotState {
        return states[stateId];
    }
}
}